package com.sllp.C71S3TsllpShop.bean;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

public class Business implements Serializable{
	
	private static final long serialVersionUID = 1L;

	private Integer id;

    private Integer user;

    private String name;

    private String licence;

    private Timestamp registerTime;

    private Integer loginState;

    private Integer state;

    private Integer image;

    private Integer addr;

    private String description;
    
    private Image image2;
    
    private List<Product> products;
    
    private User user2;
    
    public Address address;

    public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public Business(Integer id, Integer user, String name, String licence, Timestamp registerTime, Integer loginState, Integer state, Integer image, Integer addr) {
        this.id = id;
        this.user = user;
        this.name = name;
        this.licence = licence;
        this.registerTime = registerTime;
        this.loginState = loginState;
        this.state = state;
        this.image = image;
        this.addr = addr;
    }

    public Business(Integer id, Integer user, String name, String licence, Timestamp registerTime, Integer loginState, Integer state, Integer image, Integer addr, String description) {
        this.id = id;
        this.user = user;
        this.name = name;
        this.licence = licence;
        this.registerTime = registerTime;
        this.loginState = loginState;
        this.state = state;
        this.image = image;
        this.addr = addr;
        this.description = description;
    }

    public Business() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUser() {
        return user;
    }

    public void setUser(Integer user) {
        this.user = user;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getLicence() {
        return licence;
    }

    public void setLicence(String licence) {
        this.licence = licence == null ? null : licence.trim();
    }

    public Timestamp getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Timestamp registerTime) {
        this.registerTime = registerTime;
    }

    public Integer getLoginState() {
        return loginState;
    }

    public void setLoginState(Integer loginState) {
        this.loginState = loginState;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getImage() {
        return image;
    }

    public void setImage(Integer image) {
        this.image = image;
    }

    public Integer getAddr() {
        return addr;
    }

    public void setAddr(Integer addr) {
        this.addr = addr;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

	public Image getImage2() {
		return image2;
	}

	public void setImage2(Image image2) {
		this.image2 = image2;
	}

	public List<Product> getProducts() {
		return products;
	}

	public void setProducts(List<Product> products) {
		this.products = products;
	}

	public User getUser2() {
		return user2;
	}

	public void setUser2(User user2) {
		this.user2 = user2;
	}
}